import React from 'react';
import {Router} from 'dva/router';
import { ConfigProvider } from 'antd';
import createRoutes from "./routes";
import zh_CN from 'antd/es/locale/zh_CN';

function RouterConfig({app, history}) {
  return (
    <ConfigProvider locale={zh_CN}>
      <Router history={history}>
        {createRoutes(app)}
      </Router>
    </ConfigProvider>
  );
}

export default RouterConfig;
